<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>修改客户</title>
<script src="../js/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
        	 //返回
        	 function ret(){
        		   history.go(-1);
  		   }
</script>
</head>
<body>
<s:if test="#request.product==null">
 <jsp:forward page="update_blank.jsp"></jsp:forward>
</s:if>
<s:elseif test="#request.norms==null">
 <jsp:forward page="update_blank.jsp"></jsp:forward>
</s:elseif>
<h2>增加客户</h2><hr/>
<form action="updateProduct" method="post" id="form1">
<s:hidden name="product.pdProductid"/>
  <table width="500" border="1">
  <tr>
    <td>产品名称:</td>
    <td><input type="text" name="product.pdProductname" value="${product.pdProductname}"></td>
  </tr>
  <tr>
    <td>价格:</td>
    <td><input type="text" name="product.pdPrice" value="${product.pdPrice}"></td>
  </tr>
  <tr>
    <td>库存:</td>
    <td><input type="text" name="product.pdAllcount" value="${product.pdAllcount}"></td>
  </tr>
  <s:select name="norm" list="norms" listKey="typeId" listValue="typeValue" label="规格" ></s:select>
  <s:select name="unit" list="units" listKey="typeId" listValue="typeValue" label="单位" ></s:select>
  <tr>
    <td>其它:</td>
    <td>
      <textarea name="product.pdOther" id="textarea" cols="45" rows="5" >${product.pdOther}</textarea>
    </td>
  </tr>
  <tr><td colspan="2"><input type="button" onclick="ret()" value="返回"><input type="submit" value="提交"></td></tr>
</table>
</form>
</body>
</html>